﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Data.SqlClient;

namespace Korhaz
{
    public class Alkalmazottak: DAL
    {
      public Alkalmazottak(ref bool Err)
       {
           if (!base.IsConnectCreated())
           {
               Err = !base.MakeConnection();
           }
       }
      public SqlDataReader AlkalmazottLista(ref string ErrMsg)
      {
          string selectparancs = "SELECT AlkID, AlkTipus " +
                                  "FROM Alkalmazottak ";
          SqlDataReader ujdbreader;
          ujdbreader = myExecuteReader(selectparancs, ref ErrMsg);
          return ujdbreader;
      }
    }
}
